package yl.hs.bmipfull.pojo.finance;

import lombok.Data;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * ReceivePaymentRecordEntity 结算收/付款记录
 * @category 财务管理——结算收/付款记录
 * @author 谢景广
 * @date 2022-01-08
 */
@Data
@DBTable(mapCode = "receive_payment_record",disName = "结算收/付款记录")
public class ReceivePaymentRecordEntity extends BaseEntity {
    private Long id;
    @DBField(disName = "收/付款信息编号",mapCode = "sn", isSerialNumber = true,isRequire = true,snPrefix = "RPRN")
    private String sn;
    @DBField(disName = "公司名称",mapCode = "companyName")
    private String companyName;
    /**
     * 合同sn
     */
    @DBField(disName = "合同编号",mapCode = "contractSN")
    private String contractSN;
    /**
     *收款时间
     */
    @DBField(disName = "收款时间",mapCode = "tradeTime")
    private Date tradeTime;
    /**
     * 收款金额
     */
    @DBField(disName = "收款金额",mapCode = "tradeAmount")
    private BigDecimal tradeAmount;
    /**
     * 收款方式
     */
    @DBField(disName = "收款方式",mapCode = "tradeWay")
    private String tradeWay;
    /**
     * 收款账户
     */
    @DBField(disName = "收款账户",mapCode = "tradeAccount")
    private String tradeAccount;
    /**
     * 收款银行
     */
    @DBField(disName = "收款银行",mapCode = "tradeBank")
    private String tradeBank;
    /**
     * 单据编号
     */
    @DBField(disName = "单据编号",mapCode = "orderNum")
    private String orderNum;
    /**
     * 备注
     */
    private String remark;

    /**
     * 交易类型-false 支出，true 收入
     */
    private boolean tradeType;

    /**
     * 文件sn
     */
    private String fileSN;

    /**
     * 状态
     */
    private short state;

    private String organizationCode;

}
